package com.enba.mallapi.module.area.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 区域信息表
 *
 * @author 恩爸编程
 * @since 2025-08-04
 */
@TableName("t_area_info")
@ApiModel(value = "AreaInfo对象", description = "区域信息表")
@Data
public class AreaInfo implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty("主键ID")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("区域代码")
  private String code;

  @ApiModelProperty("区域名称")
  private String name;

  @ApiModelProperty("父级区域代码")
  private String parentCode;

  @ApiModelProperty("层级（1: 省, 2: 市, 3: 区/县，4:乡/镇）")
  private Integer level;

  @ApiModelProperty("创建时间")
  private LocalDateTime createdAt;

  @ApiModelProperty("更新时间")
  private LocalDateTime updatedAt;

  @ApiModelProperty("逻辑删除标志（0: 未删除, 1: 已删除）")
  private Boolean deleted;
}
